#define _LED_MODULE_

#include "osObjects.h"
#include "pincfg.h"
#include "ledctr.h"

/*****************************************************************************//*!
*
* @brief   led task.
*     
* @param   none
*
* @return  none
*
* @ Pass/ Fail criteria: none
*****************************************************************************/
void LedCtrTask(void *argument)
{
    OS_ERR      os_err;
    

    for(;;){
        OSTimeDly (200, OS_OPT_TIME_DLY, &os_err);
     
        if(LedRedOutSt()){
            LedRedOutOff();
        } else {
            LedRedOutOn();
        }
        
        OSTimeDly (300, OS_OPT_TIME_DLY, &os_err);
        if(LedGreenOutSt()){
            LedGreenOutOff();
        } else {
            LedGreenOutOn();
        }
        
    }
}


/*****************************************************************************//*!
*
* @brief   led control init.
*     
* @param   none
*
* @return  none
*
* @ Pass/ Fail criteria: none
*****************************************************************************/
void LedInit(void)
{
 
}



